package com.yuntongxun.ecdemo.voicechat.util;

import android.content.Context;
import android.util.Log;

import java.io.IOException;

/**
 * 获取国家的图标和名称
 * @author li_zhuonan
 * @version 1.0
 * @since 2016/11/15
 */

public class CountryUtil {

    /**
     * 获取所有的图标
     * @param context
     * @return
     */
    public static String[] getCountryIcon(Context context){
        try {
            String[]  flLists=context.getAssets().list("flag");
            return flLists;
        } catch (IOException e) {
            return null;
        }
    }

    /**
     * 返回全球国家数组
     * @return
     */
    public static final String[] getAllCountries(){
        String[] languages= {"USA","UK","China","Japan","Korea","France","Germany","Italy","Spain","Brazil","Turkey",
                "Afghanistan","Albania","Algeria","Andorra","Angola","Antigua & Barbuda","Argentina","Armenia",
                "Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus",
                "Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia","Botswana","Brazil","Brunei Darussalam",
                "Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic",
                "Chad","Chile","China","Colombia","Comoros","Congo(DR)","Congo(Republic)","Cook Islands","Costa Rica",
                "Cote d'Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica",
                "Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia",
                "Faroe Islands","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Greenland",
                "Grenada","Guam","Guatemala","Guernsey","Guinea","Guinea Bissau","Guyana","Haiti","Honduras","Hong Kong (China)",
                "Hungary","Iceland","India","Indonesia","Iran","Iraq","Iraqi Kurdistan","Ireland","Israel","Italy","Jamaica","Japan",
                "Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Korea","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon",
                "Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau (China)","Macedonia","Madagascar","Malawi",
                "Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco",
                "Mongolia","Montenegro","Morocco","Mozambique","Myanmar(Burma)","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua",
                "Niger","Nigeria","Niue","North Korea","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay",
                "Peru","Philippines","Poland","Portugal","Puerto Rico (U.S.A)","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis",
                "Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome And Principe","Saudi Arabia","Scotland (U.K.)",
                "Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan",
                "Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste",
                "Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","UAE","Uganda","UK","Ukraine","Uruguay","USA","Uzbekistan",
                "Vanuatu","Venezuela","Viet Nam","Yemen","Zambia","Zimbabwe"};
        return languages;
    }
}
